package com.dt76.smallloanbackenduser.remote.yaozhao;

import com.dt76.smallloanbackenduser.hystrix.yaozhao.UpcomingExpireRemoteHystrix;
import com.dt76.smallloanbackenduser.pojo.yaozhao.UpcomingExpire;
import com.dt76.smallloanbackenduser.utils.Page;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "smallloan-backend-service",fallback = UpcomingExpireRemoteHystrix.class)
public interface UpcominngExpireRemote {
    //指定方法
    @RequestMapping("/yaozhao/qryAll")
    public List<UpcomingExpire> qryAll();

    @RequestMapping("/yaozhao/qryPageAll")
    public Page qryPageAll(@RequestParam("pageIndex") int pageIndex,
                           @RequestParam("userName") String userName,
                           @RequestParam("phoneNumber") String phoneNumber,
                           @RequestParam("loanId") String loanId,
                           @RequestParam("ContractId") String ContractId);

}
